<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@taglib prefix="form"  uri="http://www.springframework.org/tags/form"%> 
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>  

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>用户删除</title>

<!-- 提示是否删除信息 -->
<script type="text/javascript"> 
function del(){ 
if(!confirm("确认要删除吗？")){ 
	window.event.returnValue = false; 
	//return false;
} 
} 
</script> 


</head>
<body>
<form:form action="${user.id }" method="post" modelAttribute="user">
		<table align="center">
			<tr><td colspan="2"><h2 align="center">删除用户</h2></td></tr>
			<tr>
				<td>ID</td>
				<td><form:input path="id" readonly="readonly"/></td>
			</tr>
			<tr>
				<td>姓名</td>
				<td><form:input path="name"/></td>
			</tr>
			<tr>
				<td>年龄</td>
				<td><form:input path="age"/></td>
			</tr>
			<tr><td colspan="2">  <input type="submit" onclick="return del()" value="删除   "/> </td></tr>
			
		</table>	
	</form:form>
</body>
</html>